<?php

	/**
	 * Defines a class to be used for Text Data Typing with PHP
	 * 
	 * @author Pablo Santiago Sánchez <phackwer@gmail.com>
	 * @copyright Copyright (c) 2008, Pablo Santiago Sánchez
	 * @license http://opensource.org/licenses/bsd-license.php BSD License
	 * @package pop
	 * @subpackage datatypes
	 */

	/**
	 * Class used to handle text fields.
	 * 
	 * @package pop
	 * @subpackage datatypes
	 */
	class PText extends PVarchar
	{
		/**
		 * Constructor, in which you must inform the default value and size.
		 * If none is informed, it uses empty as default and 8.388.608 as max char size
		 * @param string $defaultval Default value.
		 * @param integer $size maximum size.
		 */
		public function __construct($defaultval = "", $size = 8388608)
		{
			$this->size 		= $size;
			$this->__set("value", $defaultval);
			$this->defaultval 	= $defaultval;
		}
	}

?>